package com.zzyl;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author byZhao
 * @create 2025/6/28 12:06
 * @description
 */
@Component
public class SpringTaskDemo {

    // cron 表达式
   // @Scheduled(cron = "30 12 12 * * ?")
    public void task(){

        System.out.println("我执行了"+ LocalDateTime.now());

    }


}
